﻿using System.Windows;
using System.Windows.Controls;

namespace SuiYuan.UI.Controls.Forms
{
    public class LayUIUserNameTextBox : TextBox
    {
        public bool ShowIcon
        {
            get { return (bool)GetValue(ShowIconProperty); }
            set { SetValue(ShowIconProperty, value); }
        }
        public bool Radius
        {
            get { return (bool)GetValue(RadiusProperty); }
            set { SetValue(RadiusProperty, value); }
        }

        /// <summary>
        /// 提示信息
        /// </summary>
        public string PlaceHolder
        {
            get { return (string)GetValue(PlaceHolderProperty); }
            set { SetValue(PlaceHolderProperty, value); }
        }

        public static readonly DependencyProperty ShowIconProperty = DependencyProperty.Register("ShowIcon", typeof(bool), typeof(LayUIUserNameTextBox), new PropertyMetadata(true));
        public static readonly DependencyProperty PlaceHolderProperty = DependencyProperty.Register("PlaceHolder", typeof(string), typeof(LayUIUserNameTextBox));
        public static readonly DependencyProperty RadiusProperty = DependencyProperty.Register("Radius", typeof(bool), typeof(LayUIUserNameTextBox));
    }
}
